<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */

namespace Common\Constants;

use Hyperf\Constants\Annotation\Constants;
use Hyperf\Constants\Annotation\Message;

#[Constants]
enum ErrorCode
{
    use EnumConstantsTrait;

    #[Message('Server Success！')]
    public const SERVER_SUCCESS = 200;

    #[Message('Server Error！')]
    public const SERVER_ERROR = 500;

    #[Message('Unauthorized！')]
    public const SERVER_UNAUTHORIZED = 401;
}
